package sym.qrcode.common;

import sym.qrcode.decoder.ErrorCorrectionLevel;

import java.util.Vector;

public final class DecoderResult {

	private final byte[] rawBytes;
	private final String text;
	private final Vector byteSegments;
	private final ErrorCorrectionLevel ecLevel;
	private String decrypt_text;

	public DecoderResult(byte[] rawBytes, String text, String decrypt_text,
			Vector byteSegments, ErrorCorrectionLevel ecLevel) {
		if (rawBytes == null && text == null) {
			throw new IllegalArgumentException();
		}
		this.rawBytes = rawBytes;
		this.decrypt_text = decrypt_text;
		this.text = text;
		this.byteSegments = byteSegments;
		this.ecLevel = ecLevel;
	}

	public String getDecrypt_text() {
		return decrypt_text;
	}

	public void setDecrypt_text(String decrypt_text) {
		this.decrypt_text = decrypt_text;
	}

	public byte[] getRawBytes() {
		return rawBytes;
	}

	public String getText() {
		return text;
	}

	public Vector getByteSegments() {
		return byteSegments;
	}

	public ErrorCorrectionLevel getECLevel() {
		return ecLevel;
	}

}